package com.eshop.modules.mp.service.dto;

public class UpdateGoodsDto
{
    private Integer roomId;
    private String productId;
    
    public Integer getRoomId() {
        return this.roomId;
    }
    
    public String getProductId() {
        return this.productId;
    }
    
    public void setRoomId(final Integer roomId) {
        this.roomId = roomId;
    }
    
    public void setProductId(final String productId) {
        this.productId = productId;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof UpdateGoodsDto)) {
            return false;
        }
        final UpdateGoodsDto other = (UpdateGoodsDto)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$roomId = this.getRoomId();
        final Object other$roomId = other.getRoomId();
        Label_0065: {
            if (this$roomId == null) {
                if (other$roomId == null) {
                    break Label_0065;
                }
            }
            else if (this$roomId.equals(other$roomId)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$productId = this.getProductId();
        final Object other$productId = other.getProductId();
        if (this$productId == null) {
            if (other$productId == null) {
                return true;
            }
        }
        else if (this$productId.equals(other$productId)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof UpdateGoodsDto;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $roomId = this.getRoomId();
        result = result * 59 + (($roomId == null) ? 43 : $roomId.hashCode());
        final Object $productId = this.getProductId();
        result = result * 59 + (($productId == null) ? 43 : $productId.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "UpdateGoodsDto(roomId=" + this.getRoomId() + ", productId=" + this.getProductId() + ")";
    }
}
